package com.lidong.lowcode.database.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 表外键
 *
 * @author LiDong
 * @version 1.0.0
 * @createTime 9/9/2022 8:52 AM
 */
// This annotation is used to Class
@Target(ElementType.TYPE)
// When  run is  effective
@Retention(RetentionPolicy.RUNTIME)
// Java document annotation
@Documented
public @interface TableForeignKey {

    /**
     * 外键名称
     *
     * @return String
     */
    String name() default "";

    /**
     * 外键的列
     *
     * @return String[]
     */
    String[] columns() default {};

}
